﻿using System.Collections.ObjectModel;

namespace Bookworm.Core
{
    public sealed class Link
    {
        public string Url { get; set; }
        public LinkType Type { get; set; }
    }

    public sealed class LinkCollection : Collection<Link>
    {
        public void Add(string url, LinkType type)
        {
            var link = new Link();
            link.Url = url;
            link.Type = type;
            Add(link);
        }
    }

    public enum LinkType
    {
        Review,
        Purchase,
        Toc,
        Content,
        Other
    }
}
